<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    	               "http://www.w3.org/TR/html4/loose.dtd">

<html>
	<head>
		<link href="Standard.css" rel="stylesheet" type="text/css">
	  	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	  	<title>Add Header</title>
 
	</head>
	<body>
	<%@ page import="java.util.*" %>
	<%@ page import="jpa.*" %>
	<%@ page import="javax.naming.*" %>
	<%@include file="header.jsp" %>
	
	<%
		String id = request.getParameter("ID");
		Cache c = stateless.getCache(id);
		stateful.setCache(c);
	
	%>

		<div id = "container">
			<div id="admin">
				<div id="newCache">
					<h2>Add Header to <%= c.getCacheName() %></h2>
					
					<form enctype="multipart/form-data" method="post" action="Controller?do=createHeader">
				 		<label class="adminLabel">Header Name: </label><input class="adminTextBox" type="text" name="headerName" id="cacheName"/><br class="clearBoth"/>
				 		<label class="adminLabel">Description: </label><textarea class="adminTextAreaBox" name="headerDescription" id="cacheDescription"> </textarea><br class="clearBoth"/>
				 		<label class="adminLabel">Photo: </label> <input name="file" type="file"/> <br class="clearBoth"/>
				 		<br class="clearBoth"/>
				 		<input type="submit" value="Finished">
				 	</form>
			 	</div>
		 	</div>
	 	</div>		 	




</body>
</html>